<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8" import="model.UserService,java.util.*"%>
<%
request.setCharacterEncoding("utf-8");
String username = request.getParameter("un");//带条件查找时输入的用户名
UserService us = new UserService();
List<Map<String, String>> users = us.getUsers(username);
%>
<div class="container-fluid">
	<div class="row">
		<div class="col-md-12 col-12">
			<nav
				class="navbar navbar-expand-lg navbar-light bg-light justify-content-between">
				<a class="navbar-brand"
					href="<%=request.getContextPath()%>/homepage.action"><span
					class="text-info">网络点餐系统</span></a>
				<ul class="navbar-nav mr-auto">
					<li
						class="nav-item<%=request.getParameter("fun").equals("index") ? "active" : ""%>">
						<a class="nav-link"
						href="<%=request.getContextPath()%>/user_index.action">正在点餐</a>
					</li>
					<li
						class="nav-item<%=request.getParameter("fun").equals("show") ? "active" : ""%>">
						<a class="nav-link"
						href="<%=request.getContextPath()%>/user_show_dc.action">我的点餐</a>
					</li>
				</ul>

				<ul class="nav justify-content-end">
					<li class="nav-item dropdown"><a class="nav-link" href="#"
						data-toggle="dropdown"><%=session.getAttribute("loginName")%></a>
						<div class="dropdown-menu dropdown-menu-right">
							<a class="dropdown-item"
								href="<%=request.getContextPath()%>/pages/made.jsp"
								onclick="return confirm('确定要修改吗？')">修改个人资料信息</a>
							<div class="dropdown-divider"></div>
							<a class="dropdown-item"
								href="<%=request.getContextPath()%>/logout.action">退出登录</a>
						</div></li>
				</ul>
			</nav>
		</div>
	</div>
</div>